dhcpv4: move dhcpv4_init() to end of dhcpv4.c
authorDavid Härdeman <[email protected]>
Wed, 24 Sep 2025 12:29:01 +0000 (14:29 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 3 Oct 2025 10:52:30 +0000 (12:52 +0200)
commitf770588f5ed64915829ae22b2fa393482351a6fd
treea0e7a0855629b92d68012b7107d36e0b0b262206
parentf0d855358b86a36efbfeb5a9de5a1d2a4d9d80fe
dhcpv4: move dhcpv4_init() to end of dhcpv4.c

This removes the need for some forward declarations. Also, inline the two
structs that are only used inside dhcpv4_init().

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/264
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c